package File;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
        File file=new File("C:\\Users\\23853\\Desktop\\新建文件夹\\Demo.txt");
String name= file.getName();
        System.out.println(name);

        long len= file.length();
        System.out.println(len);

        boolean q= file.canWrite();
        boolean a= file.canRead();

        boolean z= file.isHidden();

        System.out.println(q);
        System.out.println(a);
        System.out.println(z);
    }
}
